package com.streamax.s17.mqs.api.service;

import com.streamax.s17.mqs.api.model.dto.MsgRetrieveDTO;
import com.streamax.s17.mqs.api.model.request.MsgRetrieveRQ;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;
import java.util.List;

@FeignClient("S17-mqs")
public interface IMqsService {

    @RequestMapping(value = "api/v1/msg/query", method = RequestMethod.GET)
    List<MsgRetrieveDTO> retrieve(@Valid @ModelAttribute MsgRetrieveRQ request);

}
